﻿using Esst.Dto.Response.Auth;
using Esst.Dto.WebApp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Esst.IService.Auth
{
    public interface IOnlineUserService
    {
        #region 基础接口

        /// <summary>
        /// 保存在线用户
        /// </summary>
        /// <param name="jwtUserVo"></param>
        /// <param name="remoteIp"></param>
        Task<LoginUserInfo> SaveLoginUserAsync(JwtUserVo jwtUserVo, string remoteIp);

        /// <summary>
        /// jwt用户信息
        /// </summary>
        /// <param name="userVo"></param>
        /// <param name="permissionRoles"></param>
        /// <returns></returns>
        Task<JwtUserVo> CreateJwtUserAsync(UserVo userVo, List<string> permissionRoles);

        #endregion 基础接口
    }
}